{include file="common/headerRes" /}
<body>
	<!-- 头部 -->
	{include file="common/head"}
	<!-- /头部 -->
	
	<div class="main-container container-fluid">
		<div class="page-container">
			            <!-- Page Sidebar -->
           {include file="common/left"}
            <!-- /Page Sidebar -->
            <!-- Page Content -->
            <div class="page-content">
                <!-- Page Breadcrumb -->
                <div class="page-breadcrumbs">
                    <ul class="breadcrumb">
                        <li>
                            <a href="#">系统</a>
                        </li>
                        <li class="active">用户管理</li>
                    </ul>
                </div>
                <!-- /Page Breadcrumb -->

                <!-- Page Body -->
                <div class="page-body">
                    
<button type="button" tooltip="添加用户" class="btn btn-sm btn-azure btn-addon" onClick="javascript:window.location.href = '{:url('add')}'"> <i class="fa fa-plus"></i> Add
</button>
<div class="row">
    <div class="col-lg-12 col-sm-12 col-xs-12">
        <div class="widget">
            <div class="widget-body">
            <form method="post" action="">
                <div class="flip-scroll">
                    <table class="table table-bordered table-hover">
                        <thead class="">
                            <tr>
                                <th class="text-center">ID</th>
                                <th class="text-center">排序</th>
                                <th class="text-center">栏目名称</th>
                                <th class="text-center">栏目类型</th>
                                <th class="text-center">上级栏目</th>
                                <th class="text-center">操作</th>
                            </tr>
                        </thead>
                        <tbody>
                            {volist name="cateRes" id="res"}
                                <tr>
                                    <td align="center">{$res.id}</td>
                                    <td align="center">
                                        <input type="text" style="text-align:center;width:50px;" value="{$res.sort}" name="{$res.id}" />
                                    </td>
                                    <td align="left">{$res.level|str_repeat="---&nbsp;&nbsp;",###*1}{$res.catename}</td>
                                    <td align="center">
                                        {if condition="$res.type eq 1"}
                                            单页
                                        {elseif condition="$res.type eq 2"/}
                                            列表
                                        {elseif condition="$res.type eq 3"/}
                                            图片
                                        {else /}
                                            分页
                                        {/if}
                                    </td>
                                    <td align="center">{if condition="$res.pid eq 0"}顶级分类{else/}{$res.pidname}{/if}</td>
                                    <td align="center">
                                        <a href="{:url('edit',array('id' => $res['id']))}" class="btn btn-primary btn-sm shiny">
                                            <i class="fa fa-edit"></i> 编辑
                                        </a>
                                        <a href="#" onClick="warning('确实要删除吗', '{:url('del',array('id' => $res['id']))}')" class="btn btn-danger btn-sm shiny">
                                            <i class="fa fa-trash-o"></i> 删除
                                        </a>
                                    </td>
                                </tr>
                            {/volist}
                        </tbody>
                    </table>
                </div>
                <div>
                    <div>
                        <input type="submit" class="btn btn-palegreen" style="margin-top:5px;margin-left:calc(11% + 4px);" value="排序" /> 
                    </div>
                </div>
                </form>
            </div>
        </div>
    </div>
</div>

                </div>
                <!-- /Page Body -->
            </div>
            <!-- /Page Content -->
		</div>	
	</div>

	    <!--Basic Scripts-->
    <script src="__STYLE__/jquery_002.js"></script>
    <script src="__STYLE__/bootstrap.js"></script>
    <script src="__STYLE__/jquery.js"></script>
    <!--Beyond Scripts-->
    <script src="__STYLE__/beyond.js"></script>
    


</body></html>